const {
  createStudent,
  deleteStudent,
  updateStudent,
  queryStudent,
  queryStudentByName
} = require("./studentService");

// createStudent({
//   name: "佩奇",
//   age: 3,
//   gender: 1,
// }).then((result) => {
//   console.log(result.toJSON());
// });
//需要模拟出一大批数据 将这些数据加入到数据库
// deleteStudent(12).then((result) => {
//   console.log(result);
// });
// 把萧勇的年纪改成6岁
// updateStudent(3, { name: "萧勇", age: 6, gender: 1 }).then((result) => {
//   console.log(result);
// });
module.exports = {
  createStudent,
  deleteStudent,
  updateStudent,
  queryStudent,
  queryStudentByName
};
